import request from '@/utils/request'

// 查询设备预测列表
export function listPred(query) {
  return request({
    url: '/business/pred/list',
    method: 'get',
    params: query
  })
}

// 查询设备预测详细
export function getPred(id) {
  return request({
    url: '/business/pred/' + id,
    method: 'get'
  })
}

// 新增设备预测
export function addPred(data) {
  return request({
    url: '/business/pred',
    method: 'post',
    data: data
  })
}

// 修改设备预测
export function updatePred(data) {
  return request({
    url: '/business/pred',
    method: 'put',
    data: data
  })
}

// 删除设备预测
export function delPred(id) {
  return request({
    url: '/business/pred/' + id,
    method: 'delete'
  })
}
